package homework2;

import java.util.concurrent.Callable;

public class getSum implements Callable<Integer>{
	Integer begin;
	
	public getSum(Integer begin){
		this.begin=begin;
	}
	

	@Override
	public Integer call() throws Exception {
		Integer sum=0;
		for(int i=0;i<=9;i++){
			sum+=begin+i;
		}
		return sum;
	}

}
